package com.headline.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.headline.dojo.Type;
import com.headline.mapper.TypeMapper;
import com.headline.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class TypeServiceImpl extends ServiceImpl<TypeMapper, Type>
    implements TypeService{

    @Autowired
    private TypeMapper typeMapper;

    /**
     * 首页数据查询
     * @param portalVo
     * @return
     */
    @Override
    public List<Type> list() {
        LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper();
        List<Type> typeList = typeMapper.selectList(queryWrapper);
        return typeList;
    }
}